/*--------------------------------------------------------------
 * File: demo34.c 编码类型：C语言  UTF-8
 * Author WRS (1352509846@qq.com)
 * 功能: 创建各类三角形图案
 * Version 0.1
 * Date 2022-02-02 
 * 
 * @copyright Copyright (c) 2022
 * 
----------------------------------------------------------------*/
#include <stdio.h>

int main(int argc, char const *argv[])
{
    int i, j, rows;
    printf("行数:");
    scanf("%d",&rows);

    for(i=1; i<=rows; i++)
    {
        for(j=1; j<=i; j++)
        {
            printf(" *");
        }
        printf("\n");
    }

    return 0;
}
